﻿using Blog.Model;
using IBaseRepository;
using IBaseService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
	
namespace BaseService
{
	public class CollectRelationService:BaseService<CollectRelation>,ICollectRelationService
	{
		//在当前接口当中 注入自己的服务不能是自己的，不然会产生依赖循环的报错
		//这边的应用情景是注入的服务应该是仓库类的服务
		private readonly ICollectRelationRepository _collectRelationRepository;

		public CollectRelationService(ICollectRelationRepository collectRelationRepository)
		{
			base.baseRepository = collectRelationRepository;
			_collectRelationRepository = collectRelationRepository;
		}
	}
}
